package cn.edu.bcu.ls.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.bcu.ls.entity.Tag;
import cn.edu.bcu.ls.entity.Tagout;
import cn.edu.bcu.ls.mapper.TagoutMapper;
import cn.edu.bcu.ls.serviceImpl.TagoutService;

@Service
public class TagoutServiceImpl implements TagoutService{

    @Resource
    private TagoutMapper tagoutMapper;

    @Override
    public int deleteByPrimaryKey(Integer tId) {
        return tagoutMapper.deleteByPrimaryKey(tId);
    }

    @Override
    public int insert(Tagout record) {
        return tagoutMapper.insert(record);
    }

    @Override
    public int insertSelective(Tagout record) {
        return tagoutMapper.insertSelective(record);
    }

    @Override
    public Tagout selectByPrimaryKey(Integer tId) {
        return tagoutMapper.selectByPrimaryKey(tId);
    }

    @Override
    public int updateByPrimaryKeySelective(Tagout record) {
        return tagoutMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Tagout record) {
        return tagoutMapper.updateByPrimaryKey(record);
    }

	@Override
	public List<Tag> getTagByCourseId() {
		// TODO Auto-generated method stub
		return tagoutMapper.getTagByCourseId();
	}

}
